//获取列表
 
import http from '../../utils/reuqest'
import { ElderlyListResponse, ElderlyParams } from './type'
export const getElderlyList = (data:ElderlyParams) => {
  return http.get<ElderlyListResponse>('/elderly/list', data)
}

export const delElderly=(id:number)=>{
 
    return  http.delete(`/elderly/delete/${id}`);
  
}

export const delElderlys=(ids:number[])=>{
 
    return  http.post(`/elderly/deleteAll/`,ids);
  
}
